package com.morehair.bean.vo.admin;

import lombok.Data;

import java.util.List;

/**
 * @Description:
 * @Author raohui
 * @Date 2021/6/5 7:45
 */
@Data
public class RegionDataVo {

    /**
     * errno : 0
     * data : [{"id":1,"name":"北京市","type":1,"code":11,"children"
     * :[{"id":32,"name":"市辖区","type":2,"code":1101,"children":
     * [{"id":376,"name":"东城区","type":3,"code":110101},
     * {"id":377,"name":"西城区","type":3,"code":110102},
     * {"id":378,"name":"朝阳区","type":3,"code":110105},
     * {"id":379,"name":"丰台区","type":3,"code":110106},
     * {"id":380,"name":"石景山区","type":3,"code":110107},
     * {"id":381,"name":"海淀区","type":3,"code":110108},
     * {"id":382,"name":"门头沟区","type":3,"code":110109},
     * {"id":383,"name":"房山区","type":3,"code":110111},
     * {"id":384,"name":"通州区","type":3,"code":110112},
     * {"id":385,"name":"顺义区","type":3,"code":110113},
     * {"id":386,"name":"昌平区","type":3,"code":110114},
     * {"id":387,"name":"大兴区","type":3,"code":110115},
     * {"id":388,"name":"怀柔区","type":3,"code":110116},
     * {"id":389,"name":"平谷区","type":3,"code":110117},
     * {"id":390,"name":"密云区","type":3,"code":110118},
     * {"id":391,"name":"延庆区","type":3,"code":110119}]}]},
     * {"id":2,"name":"天津市","type":1,"code":12,"children"
     * :[{"id":33,"name":"市辖区","type":2,"code":1201,
     * "children":[{"id":392,"name":"和平区","type":3,"code":120101},
     * {"id":393,"name":"河东区","type":3,"code":120102},
     * {"id":394,"name":"河西区","type":3,"code":120103},09},
     * {"id":414,"name":"鹿泉区","type":3,"code":130110},
     * errmsg : 成功
     */
        private int id;
        private String name;
        private int type;
        private int code;
        private List<ChildrenBeanX> children;

        @Data
        public static class ChildrenBeanX {
            /**
             * id : 32
             * name : 市辖区
             * type : 2
             * code : 1101
             * children : [{"id":376,"name":"东城区","type":3,"code":110101},
             *                  {"id":377,"name":"西城区","type":3,"code":110102},
             *                  {"id":378,"name":"朝阳区","type":3,"code":110105},
             *                  {"id":379,"name":"丰台区","type":3,"code":110106},
             *                  {"id":380,"name":"石景山区","type":3,"code":110107},
             *                  {"id":381,"name":"海淀区","type":3,"code":110108},
             *                  {"id":382,"name":"门头沟区","type":3,"code":110109},
             *                  {"id":383,"name":"房山区","type":3,"code":110111},
             *                  {"id":384,"name":"通州区","type":3,"code":110112},{
             *                  "id":385,"name":"顺义区","type":3,"code":110113},{
             *                  "id":386,"name":"昌平区","type":3,"code":110114}
             */

            private int id;
            private String name;
            private int type;
            private int code;
            private List<ChildrenBean> children;


            @Data
            public static class ChildrenBean {
                /**
                 * id : 376
                 * name : 东城区
                 * type : 3
                 * code : 110101
                 */
                private int id;
                private String name;
                private int type;
                private int code;

            }
        }

}
